<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>
    .box{
        display:flex;
        border: 1px solid black;
        margin: 10px;
    }
    s
    .box2{
        flex-grow:1;
    }

    .box3{
        flex-grow:2;
    }

    .box4{
        flex-grow: 3;
    }

    .block{
        height: 100px;
        width: 100px;
        margin: 10px;
        background-color:red;
    }
</style>
</head>
<body>
    <div id="box" class="box box1">
        <div class="block">1</div>
        <div  class="block">2</div>
        <div class="block">3</div>
    </div>
    <div id="box"  class="box box2">
        <div class="block">1</div>
        <div  class="block">2</div>
        <div class="block">3</div>
    </div>
    <div id="box"  class="box box3">
        <div class="block">1</div>
        <div  class="block">2</div>
        <div class="block">3</div>
    </div>
    <div id="box"  class="box box4">
        <div class="block">1</div>
        <div  class="block">2</div>
        <div class="block">3</div>
    </div>
</body>
</html>